package cn.azzhu.day02.transformations;

/**
 * @author azzhu
 * @create 2020-09-18 10:44:14
 */
public class WordCounts {
    public String word;
    public Long counts;

    public WordCounts(String word, Long counts) {
        this.word = word;
        this.counts = counts;
    }

    //仿照tuple的写法
    public static WordCounts of(String word,Long counts) {
        return new WordCounts(word,counts);
    }

    public WordCounts() {
    }

    @Override
    public String toString() {
        return "WordCounts{" +
                "word='" + word + '\'' +
                ", counts=" + counts +
                '}';
    }
}
